<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">

    <ui:composition template="/template.xhtml">

        <ui:define name="title">
            <h:outputText value="Departments"></h:outputText>
        </ui:define>

        <ui:define name="body">
            <div id="services" class="clsClearfix">
                <ui:repeat value="#{departmentsController.items}" var="item" varStatus="status">
                    <!--First Div-->
                    <h:panelGroup rendered="#{status.index %3== 0}">
                        <div class="clsGrowing clsFloatLeft">
                            <div class="inner_t">
                                <div class="inner_r">
                                    <div class="inner_b">
                                        <div class="inner_l">
                                            <div class="inner_tl">
                                                <div class="inner_tr">
                                                    <div class="inner_bl">
                                                        <div class="inner_br">
                                                            <div class="cls100_p">
                                                                <h3>#{item.name}</h3>
                                                                <img src="images/img2.jpg" alt=""/>
                                                                <p><h:outputText value="#{item.description}"/></p>
                                                                <p class="clsReadmore"><a href="#">Read more</a></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </h:panelGroup>
                    <!--END OF First DIV -->

                    <!--Second DIV -->
                    <h:panelGroup rendered="#{status.index %3== 1}" >
                        <div class="clsWaiting clsFloatLeft">
                            <div class="inner_t">
                                <div class="inner_r">
                                    <div class="inner_b">
                                        <div class="inner_l">
                                            <div class="inner_tl">
                                                <div class="inner_tr">
                                                    <div class="inner_bl">
                                                        <div class="inner_br">
                                                            <div class="cls100_p">
                                                                <h3>#{item.name}</h3>
                                                                <img src="images/img3.jpg" alt=""/>
                                                                <p><h:outputText value="#{item.description}"/></p>
                                                                <p class="clsReadmore"><a href="#">Read more</a></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </h:panelGroup>
                    <!--END OF Second DIV -->

                    <!--Third DIV -->
                    <h:panelGroup rendered="#{status.index %3== 2}">
                        <div class="clsCelebrating clsFloatLeft">
                            <div class="inner_t">
                                <div class="inner_r">
                                    <div class="inner_b">
                                        <div class="inner_l">
                                            <div class="inner_tl">
                                                <div class="inner_tr">
                                                    <div class="inner_bl">
                                                        <div class="inner_br">
                                                            <div class="cls100_p">
                                                                <h3>#{item.name}</h3>
                                                                <img src="images/img1.jpg" alt="" />
                                                                <p><h:outputText value="#{item.description}"/></p>
                                                                <p class="clsReadmore"><a href="#">Read more</a></p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </h:panelGroup>
                    <!--END OF Third DIV-->

                </ui:repeat>
            </div>
        </ui:define>
    </ui:composition>
</html>